package StateManagementIRPConstDefs;
/**
 * Generated from IDL enum "AvailabilityStatusValues".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AvailabilityStatusValues
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _InTest = 0;
	public static final AvailabilityStatusValues InTest = new AvailabilityStatusValues(_InTest);
	public static final int _Failed = 1;
	public static final AvailabilityStatusValues Failed = new AvailabilityStatusValues(_Failed);
	public static final int _PowerOff = 2;
	public static final AvailabilityStatusValues PowerOff = new AvailabilityStatusValues(_PowerOff);
	public static final int _OffLine = 3;
	public static final AvailabilityStatusValues OffLine = new AvailabilityStatusValues(_OffLine);
	public static final int _OffDuty = 4;
	public static final AvailabilityStatusValues OffDuty = new AvailabilityStatusValues(_OffDuty);
	public static final int _Dependency = 5;
	public static final AvailabilityStatusValues Dependency = new AvailabilityStatusValues(_Dependency);
	public static final int _Degraded = 6;
	public static final AvailabilityStatusValues Degraded = new AvailabilityStatusValues(_Degraded);
	public static final int _NotInstalled = 7;
	public static final AvailabilityStatusValues NotInstalled = new AvailabilityStatusValues(_NotInstalled);
	public static final int _LogFull = 8;
	public static final AvailabilityStatusValues LogFull = new AvailabilityStatusValues(_LogFull);
	public int value()
	{
		return value;
	}
	public static AvailabilityStatusValues from_int(int value)
	{
		switch (value) {
			case _InTest: return InTest;
			case _Failed: return Failed;
			case _PowerOff: return PowerOff;
			case _OffLine: return OffLine;
			case _OffDuty: return OffDuty;
			case _Dependency: return Dependency;
			case _Degraded: return Degraded;
			case _NotInstalled: return NotInstalled;
			case _LogFull: return LogFull;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _InTest: return "InTest";
			case _Failed: return "Failed";
			case _PowerOff: return "PowerOff";
			case _OffLine: return "OffLine";
			case _OffDuty: return "OffDuty";
			case _Dependency: return "Dependency";
			case _Degraded: return "Degraded";
			case _NotInstalled: return "NotInstalled";
			case _LogFull: return "LogFull";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AvailabilityStatusValues(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
